package jp.co.sn.mml.pojo.tmpatternd;


public class TmpatterndId implements java.io.Serializable { 

	//プログラムID
	private String programId;
	//パターンコード
	private String ptCd;
	//テーブル項目名
	private String tabItemNm;
	//行番号
	private Long seq;

	/** default constructor */
	public TmpatterndId(){

	}

	/** full constructor */
	public TmpatterndId(String programId,String ptCd,String tabItemNm
			,Long seq){
		this.programId = programId;
		this.ptCd = ptCd;
		this.tabItemNm = tabItemNm;
		this.seq = seq;
	}

	//Property accessors
	public String getProgramId(){
		return this.programId;
	}

	public void setProgramId(String programId){
		this.programId=programId;
	}

	public String getPtCd(){
		return this.ptCd;
	}

	public void setPtCd(String ptCd){
		this.ptCd=ptCd;
	}

	public String getTabItemNm(){
		return this.tabItemNm;
	}

	public void setTabItemNm(String tabItemNm){
		this.tabItemNm=tabItemNm;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmpatterndId))
			return false;

		TmpatterndId castOther = (TmpatterndId) other;

		return ((this.getProgramId() ==  castOther.getProgramId())
				||(this.getProgramId()!=null && castOther.getProgramId() !=null 
					&& castOther.getProgramId() !=null 
					&& this.getProgramId().equals(castOther.getProgramId())))
			&& ((this.getPtCd() ==  castOther.getPtCd())
				||(this.getPtCd()!=null && castOther.getPtCd() !=null 
					&& castOther.getPtCd() !=null 
					&& this.getPtCd().equals(castOther.getPtCd())))
			&& ((this.getTabItemNm() ==  castOther.getTabItemNm())
				||(this.getTabItemNm()!=null && castOther.getTabItemNm() !=null 
					&& castOther.getTabItemNm() !=null 
					&& this.getTabItemNm().equals(castOther.getTabItemNm())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getProgramId() == null ? 0 : this.getProgramId().hashCode());
		result = 37 * result
				+ (getPtCd() == null ? 0 : this.getPtCd().hashCode());
		result = 37 * result
				+ (getTabItemNm() == null ? 0 : this.getTabItemNm().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}